package com.qinglei.recoup.system.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 实时监测表
 *
 * @author dqh
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_real_time_monitoring")
@ApiModel(value="RealTimeMonitoring对象", description="实时监测表")
public class RealTimeMonitoring implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
            @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "租户id(机构id)")
    private Integer tenantId;

    @ApiModelProperty(value = "楼id")
    private Integer buildingId;

    @ApiModelProperty(value = "层id")
    private Integer floorId;

    @ApiModelProperty(value = "房间id")
    private Integer roomId;

    @ApiModelProperty(value = "床位id")
    private Integer bedId;

    @ApiModelProperty(value = "实时监测类别（1-呼吸阈值  2-心跳阈值）")
    private Integer monitorType;

    @ApiModelProperty(value = "呼吸心跳开始bpm")
    private String startBpm;

    @ApiModelProperty(value = "呼吸心跳结束bpm")
    private String endBpm;

    @ApiModelProperty(value = "开始时间")
    private String startTime;

    @ApiModelProperty(value = "结束时间")
    private String endTime;

    @ApiModelProperty(value = "白天晚上（1-白天 2-晚上）")
    private Integer dayType;

    @ApiModelProperty(value = "是否启用（1-启用 0-不启用（关闭））")
    private Integer enable;

    private LocalDateTime createTime;

    private LocalDateTime modifyTime;

    @ApiModelProperty(value = "0-未删除 1-已删除")
        @TableLogic
    private Integer isDeleted;

    @ApiModelProperty(value = "设备sn号")
    @TableField(exist = false)
    private String sn;


}
